package com.ruoyi.common.core.utils.bean;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @Description:
 * @Author: bailun91
 * @FileName: PopAuthenticator
 * @Date: 2021/02/23 下午5:32
 */
public class PopAuthenticator extends Authenticator {
    private String userName = null;

    private String passWord = null;

    public PopAuthenticator() {}

    public PopAuthenticator(String userName, String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(this.userName, this.passWord);
    }
}
